// [[ OnflowGenerator File UUID: cddf4af8e3d04edfac881c0e5afa6d27  ]]
package com.itdct.onflow.system.dict.qo

import com.itdct.onflow.core.qo.BaseQo
import com.itdct.onflow.core.type.Add
import com.itdct.onflow.core.type.Update
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import org.hibernate.validator.constraints.Length

/**
 * @author DCTANT
 * @date 2025-09-01 14:43:30
 * @version 1.0
 * @description 系统字典编辑入参
 */
@Schema(name = "系统字典编辑入参", description = "系统字典编辑入参")
class SysDictEditQo : BaseQo() {
// [[ OnflowGenerator Range (- fields -) Start ]]
    @Schema(title = "字典码", example = "")
    @NotBlank(message = "请输入字典码", groups = [Add::class, Update::class])
    @Length(max = 100, message = "字典码不能超过100个字符", groups = [Add::class, Update::class])
    var code: String? = null

    @Schema(title = "字典值", example = "")
    @NotBlank(message = "请输入字典值", groups = [Add::class, Update::class])
    @Length(max = 100, message = "字典值不能超过100个字符", groups = [Add::class, Update::class])
    var name: String? = null

    @Schema(title = "父节点id", example = "")
    @NotNull(message = "请输入父节点id", groups = [Add::class, Update::class])
    var parentId: Long? = null

    @Schema(title = "排序", example = "")
    @NotNull(message = "请输入排序", groups = [Add::class, Update::class])
    var sort: Int? = null

    @Schema(title = "字典说明", example = "")
    @Length(max = 500, message = "字典说明不能超过500个字符", groups = [Add::class, Update::class])
    var remark: String? = null

// [[ OnflowGenerator Range (- fields -) End ]]
}